package com.zhangh.summer.admin.support.utils.json;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2021-06-09 23:20
 **/
public interface StringEncoder {
    public <T>  String encode(T t);

    public <T> T decode(String json, Class<T> cls);

    public <T> T decode(String json, Class<T> collectionCls, Class... elementCls);

    public <T,E> T decode(String json, Class<T> cls, Class<E> collectionCls, Class... elementCls);
}

